﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Admin.Master" Inherits="System.Web.Mvc.ViewPage<Excell_On_Services.ViewModels.DepartmentModel>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	<script type="text/javascript">
	    function myFunction(var message) {
	        alert("I am an alert box!");
	    }
</script>
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <<p class="mc_title">Managerment Department</p>
    <div class="content-box"><!-- Start Content Box -->
        <div class="content-box-header">
            <p>Create New</p>
            <% if(ViewData["message"] !=null) {%>
            <div class="notification attention png_bg">
			    <a href="#" class="close"><img src="../../Content/images/icons/cross_grey_small.png" title="Close this notification" alt="close" /></a>
			    <div class="warning_text">
                        <%=ViewData["message"] %>
			    </div>
		    </div>
            <%} %>
            <div>
                    <a class="" href="<%: Url.Action("Edit",new { id = Model.DepartmentID }) %>" title="Edit" > Edit </a> | 
                    <a class="" href="<%: Url.Action("Index") %>" title="Create new" >Back to List </a> | 
                    <a class="" href="<%: Url.Action("Delete", new { id = Model.DepartmentID }) %>" title="Delete" >delete</a>
            </div>
        </div>
        <div class="content-box-content">
			<div class="tab-content default-tab" id="tab1">
    
        <% if (ViewData["message"] != null) { %>
            <div id="Message">
                <%: ViewData["message"]%>
            </div>
        <% } %>
        <table cellpadding="5" id="add_new_item">
            <tbody>
                <tr>
                  <td class="ani_text">DepartmentID</td>
                  <td><%: Model.DepartmentID %></td>
                </tr>
        
                <tr>
                    <td class="ani_text">DepartmentName</td>
                    <td><%: Model.DepartmentName %></td>
                </tr>
        
                <tr>
                    <td class="ani_text">Description</td>
                    <td><%: Model.Description %></td>
                </tr>
            </tbody>
        </table>
</asp:Content>

